package asset

import (
	"proto/asset"
	"test_client/logic/gate/api"
)

type assetRpc struct {
}

var (
	rpc = new(assetRpc)
)

func (*assetRpc) TestAdd(id int, count int) {
	request := new(proto_asset.TestAdd)
	request.Id = int32(id)
	request.Count = uint32(count)

	gate_api.Send(request)
}

func (*assetRpc) TestRemove(id int, count int, entity string) {
	request := new(proto_asset.TestRemove)
	request.Id = int32(id)
	request.Count = uint32(count)
	request.Entity = entity

	gate_api.Send(request)
}
